import axios from '@/utils/axios'

// 登陆接口
export function login(username, password) {
  return axios.post('/admin/login', { username, password })
}

export function getUserInfo() {
  return axios.post('/admin/user/info')
}

// 修改用户密码
export function updateAdminPassword(data) {
  return axios.post('/admin/password/update', data)
}
